﻿#parse("/user/inc/top.htm")
<div class="clearfix"></div>
<div id="Main">
<!--Mainleft-->
<div id="Mainleft">
	#parse("/user/inc/part-personInfo.htm")
	#parse("/user/inc/part-photo.htm")
	#parse("/user/inc/part-frindlink.htm")
</div>
<!--Mainleft End-->
<!--Mainright-->
<div id="Mainright2">
<script>
function fontZoom(size){
document.getElementById('content').style.fontSize=size+'px'
}
function doCheckForm()
{
	if(EditForm.inputuser.value=="" && $obj.guestreview==-1)
	{
		alert("留言人姓名不能为空!");
		return false;
	}
if(EditForm.content.value=="")
{
alert("评论内容不能为空!");
return false;
}
return true;
}
function doReview(username){
	document.getElementById("content").value="回复"+username+"：";
	var esrc = document.getElementById("content"); 
    if(esrc==null){ 
      esrc=event.srcElement; 
     } 
    var rtextRange =esrc.createTextRange(); 
    rtextRange.moveStart('character',esrc.value.length); 
    rtextRange.collapse(true); 
    rtextRange.select(); 
}
function gotoPage(n)
{
	ListForm.page.value=n;
	ListForm.submit();
	return false;
}
</script>
	<div class="title"><span><div class="icon"></div>文章评论</span></div>
`<h2><a href="/$!blog.domain$!obj.url">原文：$!obj.title</a></h2>
 #foreach($info in $list)
<ul class="liuyanIndex" style="width:640px;">
	<li>评论人:$!info.inputuser 发表时间：$!CommUtil.formatDate('yyyy-MM-dd HH:mm:ss',$!info.inputtime)</li>
	<li class="end" >$!HtmlUtil.getUBB2HTML($!HtmlUtil.escapeHTMLTag($!info.content))<a href="#" onClick="doReview('$!info.inputuser')">回复</a></li>
</ul>
#end
<div class="flipIndex">
共 $!rows 条信息 当前第 $!page/$!pages 页 每页 $!pageSize 条$!gotoPageHTML
</div>
		<table cellspacing=0 cellpadding=0 align=center border=0>
			<form name=EditForm onSubmit="javascript:return doCheckForm();"
				action="/blogInfo.do" method="post">
				<input type=hidden name="parameter" value="postReview">
				<input type=hidden name="parentid" value="$!obj.cid">
				<input type=hidden name="type" value="$!type">
			#if($!obj.enablereview==-1)
			#end
            #if($!obj.enablereview==1)
			<tr background="/images/dc_img13.gif">
				<td height=25 colspan=2 align="left">
					<span class=font06><img src="/images/dc_img14.gif">
						我要评论</span>
				</td>
			</tr>
			#end
			#if($!obj.enablereview==1&&$!obj.guestreview==-1&&$!currentUser.userName=="")
			<tr>
			<td colsan="2">请登录</td>
			</tr>
			#end
			#if(($!obj.enablereview==1&&$!obj.guestreview==1)||($!obj.enablereview==1&&$!obj.guestreview==-1&&$!currentUser.userName!=""))
			<tr>
				<td align=right width="10%" height=22>
					<span class=font05>* </span>姓&nbsp;&nbsp;&nbsp;&nbsp;名：
				</td>
				<td width="86%" align="left">
					<input name=inputuser class=line01 id="inputuser" size=26
						maxlength=50 value="$!currentUser.userName" >
				</td>
			</tr>
			<tr>
				<td align=right height=22 valign="top">
					<span class="font05">* </span>正&nbsp;&nbsp;&nbsp;&nbsp;文：
				</td>
				<td align="left">
				<textarea name=content class=line01 id="content" style="WIDTH: 90%; HEIGHT: 120px"></textarea>
				</td>
			</tr>
			<tr align="center">
				<td colspan=2 height=30>
					<input class=input type=submit onclick="javascript:alert('评论已提交,审核中!')" value="提 交" name=Submit>
					&nbsp;&nbsp;&nbsp;
					<input class=input type=reset value="重 写" name=reset>
				
				</td>
			</tr>
			#end
			</form>
			</table>
</div>
<!--Mainright End-->
<div class="clearfix"></div>
#parse("/user/inc/bottom.htm")
<span style="display:none">
<script language="JavaScript" type="text/javascript" src="/blogUser.do?parameter=visitCount&cid=$blog.cid"></script>
</span>

<form name="ListForm" action="" method="post">
<input type="hidden" name="parameter" value="show" />
<input type="hidden" name="type" value="doc" />
<input type="hidden" name="pid" value="$!obj.cid" />
<input type="hidden" name="pageSize" value="$!pageSize" />
<input type="hidden" name="page" value="$!page" />
</form>

</div>
</div>
</body>
</html>